package com.city.domain.house;

import com.city.domain.city.CityHouseinfo;

import java.util.Objects;

/**
 * @Author: 李顺时
 * @Description: 出租房屋管理
 * @Date: Create in 16:24 2018/8/20
 * @Modified By:
 * */

public class CityHouseInfoDetails {

    private Integer id;         //自动编号  id
    private String number;      //房源编号
    private Integer userId;     //房主或求租人记录编号
    private String province;  //省份
    private String city;       //市
    private String county;     //县、区
    private Integer town;       //乡镇
    private Integer village;    //村
    private String houseType;   //房型
    private Integer floor;      //楼层
    private Integer floorCount; //总层数
    private String sunrise;     //朝向 如，向南
    private Integer areaBuild;  //建筑面积、单位平方米
    private String decorationStatus;//装修状况
    private String facilities;  //房屋设施
    private String status;      //房屋性质、房屋状态(正常/出租/求租)
    private Double price;      //价格（每平方米价格或总价格。单位 元
    private Double lng;          //经度
    private Double lat;          //维度
    private String updateTime;  //最后更新日期
    private Integer filenumber; //文件数
    private String name;        //居民姓名
    private String sex;         //性别
    private String addr;        // 详细地址
    private String telphone;    //电话

    public CityHouseInfoDetails() {
    }

    public CityHouseInfoDetails(Integer id, String number, Integer userId, String province, String city, String county, Integer town, Integer village, String houseType, Integer floor, Integer floorCount, String sunrise, Integer areaBuild, String decorationStatus, String facilities, String status, Double price, Double lng, Double lat, String updateTime, Integer filenumber, String name, String sex, String addr, String telphone) {
        this.id = id;
        this.number = number;
        this.userId = userId;
        this.province = province;
        this.city = city;
        this.county = county;
        this.town = town;
        this.village = village;
        this.houseType = houseType;
        this.floor = floor;
        this.floorCount = floorCount;
        this.sunrise = sunrise;
        this.areaBuild = areaBuild;
        this.decorationStatus = decorationStatus;
        this.facilities = facilities;
        this.status = status;
        this.price = price;
        this.lng = lng;
        this.lat = lat;
        this.updateTime = updateTime;
        this.filenumber = filenumber;
        this.name = name;
        this.sex = sex;
        this.addr = addr;
        this.telphone = telphone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public Integer getTown() {
        return town;
    }

    public void setTown(Integer town) {
        this.town = town;
    }

    public Integer getVillage() {
        return village;
    }

    public void setVillage(Integer village) {
        this.village = village;
    }

    public String getHouseType() {
        return houseType;
    }

    public void setHouseType(String houseType) {
        this.houseType = houseType;
    }

    public Integer getFloor() {
        return floor;
    }

    public void setFloor(Integer floor) {
        this.floor = floor;
    }

    public Integer getFloorCount() {
        return floorCount;
    }

    public void setFloorCount(Integer floorCount) {
        this.floorCount = floorCount;
    }

    public String getSunrise() {
        return sunrise;
    }

    public void setSunrise(String sunrise) {
        this.sunrise = sunrise;
    }

    public Integer getAreaBuild() {
        return areaBuild;
    }

    public void setAreaBuild(Integer areaBuild) {
        this.areaBuild = areaBuild;
    }

    public String getDecorationStatus() {
        return decorationStatus;
    }

    public void setDecorationStatus(String decorationStatus) {
        this.decorationStatus = decorationStatus;
    }

    public String getFacilities() {
        return facilities;
    }

    public void setFacilities(String facilities) {
        this.facilities = facilities;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getFilenumber() {
        return filenumber;
    }

    public void setFilenumber(Integer filenumber) {
        this.filenumber = filenumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CityHouseInfoDetails that = (CityHouseInfoDetails) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(number, that.number) &&
                Objects.equals(userId, that.userId) &&
                Objects.equals(province, that.province) &&
                Objects.equals(city, that.city) &&
                Objects.equals(county, that.county) &&
                Objects.equals(town, that.town) &&
                Objects.equals(village, that.village) &&
                Objects.equals(houseType, that.houseType) &&
                Objects.equals(floor, that.floor) &&
                Objects.equals(floorCount, that.floorCount) &&
                Objects.equals(sunrise, that.sunrise) &&
                Objects.equals(areaBuild, that.areaBuild) &&
                Objects.equals(decorationStatus, that.decorationStatus) &&
                Objects.equals(facilities, that.facilities) &&
                Objects.equals(status, that.status) &&
                Objects.equals(price, that.price) &&
                Objects.equals(lng, that.lng) &&
                Objects.equals(lat, that.lat) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(filenumber, that.filenumber) &&
                Objects.equals(name, that.name) &&
                Objects.equals(sex, that.sex) &&
                Objects.equals(addr, that.addr) &&
                Objects.equals(telphone, that.telphone);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, number, userId, province, city, county, town, village, houseType, floor, floorCount, sunrise, areaBuild, decorationStatus, facilities, status, price, lng, lat, updateTime, filenumber, name, sex, addr, telphone);
    }

    @Override
    public String toString() {
        return "CityHouseInfoDetails{" +
                "id=" + id +
                ", number='" + number + '\'' +
                ", userId=" + userId +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", county='" + county + '\'' +
                ", town=" + town +
                ", village=" + village +
                ", houseType='" + houseType + '\'' +
                ", floor=" + floor +
                ", floorCount=" + floorCount +
                ", sunrise='" + sunrise + '\'' +
                ", areaBuild=" + areaBuild +
                ", decorationStatus='" + decorationStatus + '\'' +
                ", facilities='" + facilities + '\'' +
                ", status='" + status + '\'' +
                ", price=" + price +
                ", lng=" + lng +
                ", lat=" + lat +
                ", updateTime='" + updateTime + '\'' +
                ", filenumber=" + filenumber +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", addr='" + addr + '\'' +
                ", telphone='" + telphone + '\'' +
                '}';
    }
}
